Add 'safety' function declaration
authorAndrea Corallo <acorallo@gnu.org>
Fri, 3 May 2024 20:45:04 +0000 (22:45 +0200)
committerAndrea Corallo <acorallo@gnu.org>
Mon, 13 May 2024 21:01:08 +0000 (23:01 +0200)
commit9e4e6d0fc904e8a57c8433c40d6e3e9a230773d9
treefcf662b7159bb07aa73fb011b86cf6d7fef35219
parent13ddfc201108bfc71c7fa9040ee9970e929070cf
Add 'safety' function declaration

* lisp/emacs-lisp/comp.el (comp-known-predicates): Use
'comp-func-safety'.
(comp-ctxt, comp-mvar-type-hint-match-p): New 'safety' slot.
(comp-c-func-name): New function.
(comp--spill-lap-function, comp--intern-func-in-ctxt): Update.
* lisp/emacs-lisp/bytecomp.el (byte-compile-from-buffer): Spill safety.
* lisp/emacs-lisp/byte-run.el (byte-run--set-completion): New alias.
(defun-declarations-alist): Update.
lisp/emacs-lisp/byte-run.el
lisp/emacs-lisp/bytecomp.el
lisp/emacs-lisp/comp.el